//获取路径携带的信息
var loc = location.href,
    n1 = loc.length,//地址的总长度
    n2 = loc.indexOf('='),//取得=号的位置
    id = decodeURI(loc.substr(n2 + 1, n1 - n2));

var $;

layui.use(['jquery'], function () {
    $ = layui.jquery;
    
    $.ajax({
        url: '/User/getById',
        type: 'post',
        dataType: 'json',
        data: {'id': id},
        success: function (item) {
            $('input[name=account]').val(item.data.account);
        }
    });
});